home *** CD-ROM | disk | FTP | other *** search
- Path: dfw.dfw.net!not-for-mail
- From: ftlgeuse@dfw.dfw.net (Fetelgeuse)
- Newsgroups: comp.lang.c
- Subject: Re: Hiding a password
- Date: 4 Mar 1996 10:51:56 GMT
- Organization: DFW Internet Services - DFWNet: 800-2-DFWNet
- Message-ID: <4hei0c$1fr@fnord.dfw.net>
- References: <1996Feb29.224936.137160@forest> <4he620$qf2@hpbblb.bbn.hp.com> <4hehmd$1fr@fnord.dfw.net>
- NNTP-Posting-Host: dfw.dfw.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Fetelgeuse (ftlgeuse@dfw.dfw.net) wrote:
- : I wrote a function to do precisely the same thing. I made a function
- : something like:
- : char * GetString_NoEcho()
- : {
- : char *temp;
- : int i=1;
- : while(temp[i-1]!=13) {
- : temp[i-1]=getch();
- : i++;
- : }
- : temp[i]=0;
- : }
- :
-
- OOPS! sorry - be sure and add a return to that:
-
- ...
- ...
- temp[i]=0;
- return(temp);
- }
- Now all else said before still applies.
- Fetelgeuse
-
-